﻿using System;

namespace Cinemacenter.Shared
{
	public static class DateTimeExtension
	{
		public static long CurrentTimeMillis (this DateTime date)
		{
			var Jan1st1970 = new DateTime (1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
			return (long)((date.ToUniversalTime () - Jan1st1970).TotalMilliseconds);
		}
	}
}

